package com.zhaoxi.project.wms.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import com.zhaoxi.project.wms.domain.WmsOrder;
import com.zhaoxi.project.wms.domain.WmsOrderLine;

/**
 * 跟物品有关的订单Mapper接口
 *
 * @author zhaoxi
 * @date 2023-07-22
 */
@Mapper
public interface WmsOrderMapper {

    /**
     * 查询跟物品有关的订单
     *
     * @param id 跟物品有关的订单主键
     * @return 跟物品有关的订单
     */
    public WmsOrder selectWmsOrderById(Long id);

    /**
     * 查询跟物品有关的订单列表
     *
     * @param wmsOrder 跟物品有关的订单
     * @return 跟物品有关的订单集合
     */
    public List<WmsOrder> selectWmsOrderList(WmsOrder wmsOrder);

    /**
     * 新增跟物品有关的订单
     *
     * @param wmsOrder 跟物品有关的订单
     * @return 结果
     */
    public int insertWmsOrder(WmsOrder wmsOrder);

    /**
     * 修改跟物品有关的订单
     *
     * @param wmsOrder 跟物品有关的订单
     * @return 结果
     */
    public int updateWmsOrder(WmsOrder wmsOrder);

    /**
     * 删除跟物品有关的订单
     *
     * @param id 跟物品有关的订单主键
     * @return 结果
     */
    public int deleteWmsOrderById(Long id);

    /**
     * 批量删除跟物品有关的订单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWmsOrderByIds(Long[] ids);


    public List<WmsOrder> selectWmsOrderLineList(WmsOrder wmsOrder);
//    新增单据子表数据
    public int insertWmsOrderLine(WmsOrder wmsOrder);
//    更新单据子表数据
    public int updateWmsOrderLine(WmsOrder wmsOrder);

    public int deleteWmsOrderLine(WmsOrder wmsOrder);

}
